﻿@import "public.less";
@import "../font/iconfont.css?v=1.001";

/* html reset */
html, body, ul, li, ol, dl, dd, dt, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, img { margin: 0; padding: 0; }
fieldset, img { border: none; display: block; }
ul, li, ol, dl, dt, dd { list-style: none; }
input, textarea { outline-style: none; font-size: 12px; font-family: Arial,Microsoft YaHei; }
textarea { resize: none; }
a { text-decoration: none; cursor: pointer; }
body { color: #333333; font-size: 14px; font-family: Arial,Microsoft YaHei; background: #ffffff; }
*{box-sizing: border-box;}

.hd { width: 0px; height: 0px; overflow: hidden; }
.fl { float: left; }
.fr { float: right; }
.clearfix:after { content: "."; display: block; height: 0; visibility: hidden; clear: both; }
.clearfix { zoom: 1; }
.clear { clear: both; height: 0; margin: 0; padding: 0; font-size: 0; overflow: hidden; }

/* color */
.clMB { color: #2d8cf0 !important; }                       /* Middle Blue */
.clLB { color: #5cadff !important; }                       /* Light Blue */
.clDB { color: #2b85e4 !important; }                       /* Dark Blue */

.clB { color: #2d8cf0 !important; }                        /* Blue */
.clG { color: #19be6b !important; }                        /* Green */
.clO { color: #ff9900 !important; }                        /* Orange*/
.clR { color: #ed4014 !important; }                        /* Red */

.clBW1 { color: #17233d !important; }
.clBW2 { color: #515a6e !important; }
.clBW3 { color: #808695 !important; }
.clBW4 { color: #c5c8ce !important; }
.clBW5 { color: #dcdee2 !important; }
.clBW6 { color: #f4f5f7 !important; }
.clBW7 { color: #ffffff !important; }

/* 滚动条美化 */
::-webkit-scrollbar{ width: 5px; height: 5px; border-radius:5px; }
/* 定义滚动条轨道 */
::-webkit-scrollbar-track { border-radius:5px; overflow:hidden; }
/* 定义滑块 */
::-webkit-scrollbar-thumb{ background-color: #aaaaaa; border-radius:5px; overflow:hidden; }

/* layout */
.xhlay{ display:flex; flex-wrap:wrap; }
.xhlay > *{ flex-shrink:0; }

.xhcol01{ width:8.333333%; }
.xhcol02{ width:16.666666%; }
.xhcol03{ width:25%; }
.xhcol04{ width:33.333333%; }
.xhcol05{ width:41.666666%; }
.xhcol06{ width:50%; }
.xhcol07{ width:58.333333%; }
.xhcol08{ width:66.666666%; }
.xhcol09{ width:75%; }
.xhcol10{ width:83.333333%; }
.xhcol11{ width:91.666666%; }
.xhcol12{ width:100%; }

.xhspan10{ margin:-5px; }
.xhspan10 > *{ padding:5px; }
.xhspan20{ margin:-10px; }
.xhspan20 > *{ padding:10px; }

/* xhCard */
.xhcard {
    width: 100%; 
    border-radius: 3px; border: 1px solid @color_black_6;
    background-color:@color_black_7;

    .xhcard_head { 
        height: 41px; padding: 10px 15px; 
        border-bottom: 1px solid @color_black_6; 
        line-height: 20px; 
    }

    .xhcard_body { 
        padding: 15px; 
    }
}

/* xhform */
.xhform_item{
    width:100%; margin-bottom:15px;

    .xhform_item_main{
        width:100%; display:flex; align-items:start; flex-wrap:wrap;
    }

    .xhform_item_label{
        display:flex; align-items:center; flex-shrink:0;
        height:38px; padding-right:10px;

        i{
            color:@color_red;
        }
    }

    .xhform_item_control{
	    min-width:190px; margin-right:10px;
    }

    .xhform_item_tip{
        display:none; width:100%; margin-top:5px; padding-left:10px;
        color:@color_red; font-size:12px;
    }
}
.xhform_row{
    .xhform_item{
        .xhform_item_label{
            width:150px;
            justify-content:flex-end;
            
        }

        .xhform_item_tip{
            padding-left:160px;
        }
    }
}
.xhform_column{
    .xhform_item{
        .xhform_item_label{
            width:100%;
        }
    }
}
.xhinput{
    display:block; width:100%; height:38px;
    border:1px solid #eeeeee; border-radius:2px;
    padding:0 10px;
    font-size:14px; line-height:36px;
}

/* xhSelect */
.xhSelect{
    position:relative;

    .xhSelect_relt{
        width: 100%; height:38px; padding:0 10px;
        border-radius:2px; border:1px solid #eeeeee;
        font-size:14px; line-height:36px;
        .flex_b; align-items:center;

        span{
            color:#333333;
        }

        i{
            color:#999999;
            -webkit-transition: 0.5s;
            transition: 0.5s;
        }
    }

    .xhSelect_relt_unselect{
        span{color:#999999 !important;}
    }

    .xhSelect_list{
        position:absolute; left:0; top:40px; z-index:110;
        min-width:100%; max-height:262px; padding:5px 0; overflow-y:auto;
        background-color:#ffffff; border-radius:2px; border:1px solid #eeeeee;
        display:none;
    }

    .xhSelect_item{
        height:36px; overflow:hidden; padding:0 10px;
        line-height:36px; color:#333333; cursor:pointer;
        white-space: nowrap;text-overflow: ellipsis;
    }

    .xhSelect_item:hover{
        background-color:@color_black_6;
    }

    .xhSelect_item_tips{
        color:#999999 !important;
    }

    .xhSelect_item_selected{
        background-color:@color_green !important; color:#fff !important;
    }
}

.xhSelect_open{
    .xhSelect_relt{
        i{
            -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
        }
    }
}

/* button */
.xhbtn{
    display: inline-block;
    vertical-align: middle;
    height: 38px;
    line-height: 38px;
    border: 1px solid transparent;
    padding: 0 18px;
    background-color: @color_blue;
    color: #fff;
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    border-radius: 2px;
    cursor: pointer;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
.xhbtn_danger{
    background-color: @color_red !important;
}

/* xhtoast */
.xhtoast{
    position:fixed; top:0; right:0; bottom:0; left:0; z-index:999;
    background:rgba(0,0,0,.5);
    .flex_cc;

    .xhtoast_msgbox{
        padding:7px 14px; max-width:400px;
        color:@color_black_6; background:rgba(0,0,0,.8); border-radius:4px;
        font-size:14px; line-height:26px; text-align:center;
    }
}

/* xhUppics */
.xhUppics{
	.flex;
		
	li{
		width:70px; height:70px; overflow:hidden;
		margin-right:10px;
		border-radius:5px;
	}

	img{
		.img_cover
	}

	li.xhUppicsHref a{
		.flex_cc; width:100%; height:100%;
		background-color:@color_black_6;
	}

	li.xhUppicsHref i{
		font-size:24px;
		color:@color_black_3;
	}

	li.xhUppicsPic{
		position:relative;
	}

	li.xhUppicsPic a{
		position:absolute; right:-1px; top:-1px;
		width:20px; height:20px; overflow:hidden;
		border-bottom-left-radius:100%; background-color:@color_black_7;
	}

	li.xhUppicsPic i{
		font-size:20px;
		color:@color_red;
	}
}

/* xhUppic */
.xhUppic{
    .flex_cc;
    width:100%; height:100%;
    background-color:@color_black_6;

    img{
        .img_cover;
    }
}

/* xhUpfile */
.xhUpfile{
	overflow: hidden;
	* { box-sizing: border-box; font-size: 14px; }
	a { text-decoration: none; cursor: pointer; }

	.xhUpfileInitFail { 
		width: 300px; height: 30px; overflow: hidden; 
		padding: 5px 10px; 
		background: #fff9db; border: 1px solid #ffde6d; border-radius: 3px; color: #f60; 
		line-height: 20px; text-align:center;
	}

	.xhUpfileItem{
		width: 600px; overflow: hidden; 
		background: #fff; border:1px solid #e3e3e3; border-radius:3px;

		div { 
			.flex-bc; height: 40px; overflow: hidden; 
			padding: 0 10px; 
			line-height: 20px; 

			span{
				text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
			}

			a { 
				color:@clrRed; 
				margin-left:50px;
			}
		}

		p { 
			width: 100%; height: 2px; overflow: hidden; 

			label { display:block; height: 2px; background: @clrBlue; }
		}
	}

	.xhUpfileBtn { 
		display: block; width: 150px; height: 40px; overflow: hidden; 
		background: #fff; border: 1px solid #e3e3e3; border-radius: 3px; color: #666;
		line-height: 40px; text-align: center; 
	}
}

/* xhPicker */
.xhPicker { 
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 900; background: rgba(0, 0, 0, 0.6); animation: aui-fade-in .1s ease-out forwards;

    .xhPicker_main { height: 60vh; position: absolute; left: 0; right: 0; bottom: 0; overflow:hidden; border-radius: 10px 10px 0 0; background-color: #fff; animation: 0.2s ease-out 0s 1 normal forwards running aui-slide-up-screen; }

    .xhPicker_title { 
	    height:50px; padding:15px 0;
	    display:flex;
	    border-bottom:1px solid #f3f3f3;
    }

    .xhPicker_title a { 
	    width:20px; margin:0 15px;
	    line-height:20px; text-align:center;
	    flex-shrink:0;
        color:@color_black_3;
    }

    .xhPicker_title span { 
	    width:100%;
	    text-align:center; line-height:20px; font-size:15px;
    }

    .xhPicker_search { 
	    padding: 10px 15px; height:50px; border-bottom:1px solid #f3f3f3;
	    display:flex; justify-content:space-between;
    }

    .xhPicker_search a { flex-shrink: 0; background-color: #e3e3e3; border-radius: 3px; margin-left: 15px; padding: 0 15px; font-size: 12px; line-height: 30px; color: #555; }

    .xhPicker_search p { 
	    width:100%;
    }

    .xhPicker_search input { 
	    border:0; display:block;
	    width:100%; line-height:30px;
	    font-size:15px;
    }

    .xhPicker_itemTitle{
        .flex_b;  height:50px;
         border-bottom:1px solid #f3f3f3;

        li{
            position:relative;
            .flex_cc; font-size:14px;
            overflow:hidden;
        }

        span{
            display:none; height:3px;
            position:absolute; left:0; bottom:0; right:0;
            background-color:@color_blue;
        }

        li.currTitle span{
            display:block;
        }
    }

    .xhPicker_list { 
	    width:100%; height:calc(~"60vh - 100px");
	    overflow-x:hidden; overflow-y:auto;
	    padding:15px;
        display:none;
    }

    .xhPicker_list li { 
	    line-height:24px; padding:10px 0; font-size:15px;
    }

    .currList{
        display:block;
    }
}

/* xhLinkDrop（联动下拉框） */
.xhLinkDrop{
    .flex;

    .xhLinkDrop_item{
        min-width:190px;
        margin-right:10px;
    }
}

/* xhStep */
.xhStep{
	overflow:hidden; margin:0 auto;
    position:relative;
    width:1000px;

	div{
		height:5px; overflow:hidden;
        position:absolute; top:12px;
        border-radius:5px; background-color:@color_black_5;
        left:100px; right:100px;
	}
	
    p{
        height:5px;
        border-radius:5px; background-color: @color_blue;
        width:600px;
    }

    ul{
        width:100%;
        .flex_a;
        position:relative;
    }

    li{
        .flex; flex-direction:column; align-items:center;
        text-align:center; line-height:29px; color:@color_black_2;
    }

    i{
        width:29px; height:29px; margin-bottom:8px;
        background-color:@color_black_5; border-radius:15px;
        font-style:normal;
    }

    li.curr{
        i{
            background-color:@color_blue;
            color:@color_black_7;
            cursor:pointer;
        }

        span{
            color:@color_blue;
            cursor:pointer;
        }
    }
}

/* xhTimeAxis */
.xhTimeAxis{
    margin-left:8px; padding-top:30px;
    border-left:1px solid @color_black_5;

    .xhTimeAxis_item{
        position: relative;
        padding:10px 10px 10px 18px;
        margin-bottom:15px;
    }

    .xhTimeAxis_item:last-of-type{
        margin-bottom:0;
    }

    .xhTimeAxis_icon{
        position:absolute; left: -10px; top:10px;
        display:block; width:19px; height:19px; overflow:hidden;
        border-radius:50%; background-color:@color_black_7;
        font-size:13px; text-align:center; line-height:19px;
        color:@color_black_5;
    }
}

.xhDrawer{
    overflow-x:hidden; overflow-y:auto;
    position:absolute; top:0; right:0; bottom:0; z-index:900;
    background-color:@color_black_7; 
    .shadow;

    .xhDrawerBrace{
        overflow:hidden; padding:65px 15px 15px 15px;
        position:relative;
    }

    .xhDrawerTitle{
        position:absolute; top:0; left:0; right:0;
        height:50px; overflow:hidden; padding:0 15px;
        .flex_b; align-items:center;
        border-bottom:1px solid @color_black_6; background-color:@color_black_7;

        span{
            font-size:16px; color:@color_black_2;
        }
    }

    .xhDrawerClose{
        display:block; width:20px; height:20px; overflow:hidden;
        border-radius:50%; background-color:@color_red; color:@color_black_7;
        text-align:center; line-height:20px; font-size:16px;
    }
}

/* xhProgress */
.xhProgress{
    width:100%; height:7px; border-radius:4px;
    position:relative;
    background-color:#fff; box-sizing:border-box; border:1px solid @color_light_blue;

    div{
        width:50%; height:100%; border-radius:4px;
        background-color:@color_blue;
    }

    p{
        width:41px; height:15px; margin-left:-20px;
        position:absolute; left:50%; top:-20px;
        text-align:center; line-height:15px; font-size:12px; color:@color_black_2;
        display:none;
    }

    a{
        display:block; width:15px; height:15px; overflow:hidden; margin-left:-7px;
        position:absolute; left:50%; top:-5px;
        background-color:#fff; border-radius:50%; border:4px solid @color_blue;
    }
}

/* xhWangEditor */
.xhweWarp{
    border:1px solid #e3e3e3;

    .xhweToolbar{
        border-bottom:1px solid #e3e3e3;
    }

    .xhweEditor{
        min-height:300px;
    }
}

/* mouseRightMenu */
#xh_mouseRightMenu{
    box-shadow: 1px 1px 5px #cbcbcb; border-radius:5px; background-color:#fff;
    position:absolute; top:150px; left:150px;

    ul{
        margin:10px 0;
    }

    a{
        display:block; padding:0 20px 0 17px;
        line-height:34px; color:#333; font-size:13px;
    }

    a:hover{
        background-color:#e7e7e7;
    }

    i{
        margin-right:5px; font-size:15px;
    }
}

/* xhLayuiForm */
.xhLayuiForm{
    width:100%;
    display:flex; justify-content:space-between;
}
.xhLayuiLabel{
	min-width:120px;
	height: 38px;
	margin-right: -1px;
	padding: 10px 15px;
	border: 1px solid #dcdfe6;
	background-color: #eceff0;
	white-space: nowrap;
	flex-shrink: 0;
	font-size: 14px;
	line-height: 18px;
	text-align:center;
}
.xhLayuiBlock{
	width:100%;
	flex-shrink:1;
}
.xhLayuiColumn{
    flex-direction:column;

    .xhLayuiLabel{
        width:100%; margin-right:0; margin-bottom:-1px;
        text-align:left;
    }
}
.xhLayuiMust{
    padding-left:3px; position:relative;
}
.xhLayuiMust::before{
    content:""; display:block;
    position:absolute; top:0; left:0; bottom:0;
    width:3px; background-color:@color_red;
}
